package com.training.java.core.exceptions;

public class ExceptionsStringDemo {

	/**
	 * This demo class is demonstrating how to handle exceptions. Creating an
	 * String array[3] and get the "Array out of bounce exception" by calling
	 * the the 3rd element. Handle the exception.
	 */

	public static void main(String[] args) {

		// Creating String array[3] and assign values.

		String[] names = { "Saharsh", "Chandana", "Satish" };

		System.out.println("Fourth Element/Name    " + names[3]);

	}

}
